﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DispatchAssist.Weather.Interfaces;
using DispatchAssist.Weather.Entities;

namespace DispatchAssist.Weather.Controls
{
    class WeatherMapTreeNode : TreeNode
    {
         public string TypeName { get; set; }


        public IWeatherMapInfo MapInfo { get; private set; }

        #region 构造

        public WeatherMapTreeNode(string name)
            : base(name)
        {
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        /// <param name="index"></param>
        /// <param name="parentType"></param>
        /// <param name="provider"></param>
        /// <param name="info"></param>
        public WeatherMapTreeNode(string name, IWeatherMapInfo info)
            : this(name)
        {
            MapInfo = info;

            this.TypeName = name;
            this.Tag = info;
        }

        #endregion
      
    }
}
